package com.wondertek.service.dto.sys.res;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wondertek.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author xqs
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_log")
public class SysLoginLogExport extends BaseEntity {

    /**
     * 操作时间
     */
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(name = "handleTime",description = "操作时间")
    @ExcelProperty(value = "login time", order = 1)
    private Date handleTime;

    /**
     * 操作ip
     */
    @Schema(name = "handleIp",description = "操作ip")
    @ExcelProperty(value = "ip address", order = 2)
    private String handleIp;

    /**
     * 用户id
     */
    @Schema(name = "userId",description = "用户id")
    @ExcelProperty(value = "userId", order = 3)
    private String userId;

    /**
     * username
     */
    @Schema(name = "username",description = "username")
    @ExcelProperty(value = "username", order = 4)
    private String username;
}
